import request from "@/utils/request";

const STOCKREPORT_BASE_URL = "/api/v1/stockReport";

const StockReportAPI = {
  getReport() {
    return request<any, StockReport>({
      url: `${STOCKREPORT_BASE_URL}`,
      method: "get",
    });
  },
};

export default StockReportAPI;

/** 交易明细分页对象 */
export interface StockReport {
  /** 初始资金 */
  initial: number;
  /** 银证转账 */
  transfer: number;
  /** 待还 */
  repay: number;
  /** 负债利息 */
  debtFee: number;
  /** 股市现金 */
  stockCash: number;
  /** 外部现金 */
  outerCash: number;
}
